<template>
    <div style='background-color:cornflowerblue'>
        <h1>{{msg}}</h1>
    </div>
</template>
<script>
export default {
    setup() {
        // promise对象中存放需要进行异步操作的代码
        return new Promise((resolve, reject)=>{
            setTimeout(() => {
               resolve({
                msg:"hello,久等了"
               }) 
            }, 3000);
        })
    }
}
</script>